package org.orz.story.pms.biz.web.provider;

import lombok.extern.slf4j.Slf4j;
import org.orz.cloud.common.result.ResultDTO;
import org.orz.story.pms.api.AccountAuthClient;
import org.orz.story.pms.api.model.dto.DoAuthDto;
import org.orz.story.pms.biz.service.PmsPermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
public class AccountAuthProvider implements AccountAuthClient {
    @Autowired
    private PmsPermissionService pmsPermissionService;

    @Override
    public ResultDTO doAuth(DoAuthDto dto) {
        pmsPermissionService.doAuth(dto);
        return ResultDTO.success();
    }

}
